package com.mg.order.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mg.common.pojo.auto.generate.Order;
import com.mg.order.pojo.dto.OrderDto;
import com.mg.order.pojo.po.OrderPo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrderMapper extends BaseMapper<OrderPo> {
    int deleteByPrimaryKey(Long orderId);
    List<OrderPo> selectByUid(@Param("uid") Long uid);
    int insert(Order record);

    int insertSelective(Order record);

    Order selectByPrimaryKey(Long orderId);

    int updateByPrimaryKeySelective(Order record);

    int updateByPrimaryKey(Order record);
    List<OrderPo> selectPageByUid(@Param("uid") Long uid,@Param("curr") Integer curr,@Param("size") Integer size);
}